package com.sakura.mall.product.attr.service;

import com.sakura.mall.common.response.Page;
import com.sakura.mall.product.attr.domain.entity.AttrEntity;
import com.sakura.mall.product.attr.domain.request.AddAttrRequest;
import com.sakura.mall.product.attr.domain.request.UpdateAttrRequest;
import com.sakura.mall.product.attr.domain.request.AttrPageRequest;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sakura.mall.product.attr.domain.vo.AttrVo;

/**
 * 商品属性 service
 *
 * @author sakura
 */
public interface AttrService extends IService<AttrEntity> {
    

    /**
     * 分页查询
     *
     * @param request 请求
     * @return ret
     */
    Page<AttrVo> queryPage(AttrPageRequest request);

    /**
    * 注册用户
    *
    * @param request 请求
    */
    void add(AddAttrRequest request);
    

    /**
     * 更新用户
     *
     * @param id      id
     * @param request 更新
     */
    void updateById(Long id, UpdateAttrRequest request);
}
